Step 0: Research & Planning

Goal: Find a psychology study that interests you and document a plan to adapt it into a web experiment.

🎯 Goal: Find Research That Interests You

Before coding anything, you need to find research that interests you and understand what makes experiments effective. Look for studies that seem particularly clever or insightful.

By the end of this step: You'll have found an interesting study to be transformed into a digital psych experiment.

⭐ Our Example: A Rock-Paper-Scissors Study

To demonstrate the process, we chose the following study as our inspiration. Throughout this tutorial, we will build a web-based version of this experiment, and you will adapt each step to build your own.


Study Reference:
Mohammadi Sepahvand, N., StΓΆttinger, E., Danckert, J., & Anderson, B. (2014). Sequential decisions: A computational comparison of observational and reinforcement accounts. PLoS ONE, 9(4), e94308.

Research Question:
How do humans build and update mental models to make sequential decisions under uncertainty? Specifically, when playing against an opponent whose strategy changes over time, do people use statistical learning (trying to predict what the opponent will do next) or reinforcement learning (learning which actions tend to lead to wins)? The study tested this by having participants play Rock-Paper-Scissors against a computer that shifted from random play to increasingly biased strategies, then used computational modeling to determine which learning approach best explained human behavior.

Our Adaptation:
Build a web-based Rock-Paper-Scissors game where participants play against AI opponents with different strategic approaches. We implement the original study's biased algorithms (random play, lightly biased toward rock at 50%, heavily biased toward paper at 80%) plus engaging AI opponents including pattern matchers, frequency counters, and adaptive learners. We track participant choices, reaction times, win rates, learning curves, and strategy adaptation patterns. The experiment measures whether participants detect different AI strategy types and adapt their play accordingly, while collecting rich behavioral data suitable for post-hoc analysis using the original study's computational models (RELPH and ELPH) to understand individual differences in learning strategies.

πŸ“š Learn More About the Original Study's Methodology β†’

πŸ“š Phase 1: Find Your Study to Replicate

The goal is simple: find an article about a psychology experiment that interests you and that you want to recreate. Here are some approaches to help you get there:

πŸ“– Literature Search

Browse psychology research directly:

  • Google Scholar: Search for "psychology experiment" + your interests (memory, attention, decision-making)
  • PsyArXiv: Browse preprints for cutting-edge research
  • Journal browsing: Check recent issues of Psychological Science, Cognition, or Journal of Experimental Psychology

πŸ€– Optional: AI Research Assistant

Use this prompt with Claude, ChatGPT, or Gemini:

AI Prompt: Research Experiments

I want to find interesting psychology experiments that could inspire a digital study.

Please suggest 5 psychology experiments that:

  • Test specific hypotheses about how the mind works
  • Could be adapted as simple computer tasks (reaction time, choices, memory tests)
  • Would generate meaningful data in 5-10 minutes

For each suggestion, explain:

  • The core research question
  • What participants actually do in the experiment
  • Why the finding is interesting or important
  • How you might adapt it as a digital experiment

Focus on experiments that are interesting or reveal something surprising about cognition.

🎯 Optional: Replications & Extensions

Find classic studies to replicate or extend:

  • Many Labs projects: Large-scale replication efforts often highlight important studies
  • Textbook experiments: Classic findings that could benefit from modern web-based testing
  • Failed replications: Studies that didn't replicate might work with different parameters

πŸ“ Document Your Chosen Study

Once you've selected a study, create a markdown file in your repository with the study's key details. This should include the abstract, main findings, methodology, and your notes about why it interests you. See our sequential-decisions.md file as an example of the level of detail to capture.

πŸ” What to Look For

As you review potential studies, ask yourself:

  • What interests me about this experiment or result? - Look for findings that surprise you, challenge assumptions, or reveal something counterintuitive about how the mind works. The best experiments often show that our everyday intuitions about cognition are wrong.
  • Could I realistically build this? - Digital experiments work best with simple interactions: clicking, typing, choosing between options, or timing responses. Avoid studies requiring specialized equipment, complex stimuli, or face-to-face interaction.
  • Is the method clear enough to adapt? - You should understand what participants actually do step-by-step. If the procedure seems vague or overly complex, it may be difficult to implement faithfully.
  • Would this generate meaningful data quickly? - Online participants have limited attention spans. Look for experiments that can reveal interesting patterns within 5-10 minutes of testing.
  • How could I improve or extend this study? - Consider optional modifications: Could you add new measures? Test different populations? Vary the conditions? Think about what the original authors might have done differently or what questions they left unanswered.

πŸ“ Phase 2: Choose Your Study

Save Your Chosen Study

Once you find a study that interests you, capture the key details:

Full citation including authors, year, title, and publication details.
What question does this study investigate? Be specific about the underlying mechanism being tested.
How will you translate this into a web experiment? What will participants actually do?
What data will you collect to test your research question? Think about both behavioral measures and potential insights.
What draws you to this research? What implications excite you? This helps make the study truly yours.
Consider your likely participants (university students, friends, family, etc.) and how this might bias your results compared to the original study. Do you expect different outcomes? Are you planning any modifications to the original design? Document your intuitions and reasoning.

βš™οΈ Choose Your Tech Stack

For this tutorial, we will focus on building experiments that run in any modern web browser. This approach is accessible, easy to share, and can be hosted for free.

Option A: Web Experiments (HTML, CSS, JavaScript)

βœ“ Experiments run in any browser, are easy to share, and can be hosted for free on GitHub Pages. This is the path we will follow.

Option B: Python & Quarto

A powerful environment for creating reproducible research documents that combine code, analysis, and text. (Tutorial for this option coming soon).

βœ… Step 0 Checklist